package pers.sen.health.jwt;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@ToString

/**
 * token存储的用户信息
 */
public class UserInfo {

    private Long id;

    private String username;

    private String password;

    // 需要将全部权限关键字转成字符串存储
    private String roles;

    public UserInfo(Long id, String username, String roles) {
        this.id = id;
        this.username = username;
        this.roles = roles;
    }
}
